<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<c:forEach items="${themaDtoList}" var="themaDto">
<form name="themaUpdate_from" action="/food/thema/themaUpdateAction" method="post" enctype="multipart/form-data">
<input type="hidden" name="thema_num" value="${themaDto.thema_num}">
<input type="hidden" name="nowPage" value="${nowPage}">
	<table width="1000px">
		<tr>
			<td colspan="10"><h1>Update Thema</h1></td>
		</tr>
		<tr>
			<td>구분 :</td>
			<td>
				<select name="thema_type">
				<c:choose>
					<c:when test="${themaDto.thema_type==1}"><option  selected value="1">데이트</option></c:when>
					<c:otherwise><option value="1">데이트</option></c:otherwise>
				</c:choose>
				<c:choose>
					<c:when test="${themaDto.thema_type==2}"><option  selected value="2">상견례</option></c:when>
					<c:otherwise><option value="2">상견례</option></c:otherwise>
				</c:choose>
				<c:choose>
					<c:when test="${themaDto.thema_type==3}"><option  selected value="3">회식</option></c:when>
					<c:otherwise><option value="3">회식</option></c:otherwise>
				</c:choose>
				</select>
			</td>
		</tr>
		<tr>
			<td>지역 : </td>
			<td>
			<select name="thema_area1" >
					<option value="송파구">송파구</option>
					<option value="강남구">강남구</option>
					<option value="강동구">강동구</option>
			</select>
			</td>		
		</tr>
		<tr>
			<td>지역세부 : </td>
			<td>
			<select name="thema_area2" >
					<option value="삼전동">삼전동</option>
			</select>
			</td>		
		</tr>
		<tr>
			<td>음식구분 : </td>
			<td>
			<select name="thema_category1" >
					<option value="${themaDto.thema_category1}">${themaDto.thema_category1}</option>
			</select>
			</td>		
		</tr>
		<tr>
			<td>음식 상세 구분 : </td>
			<td>
			<select name="thema_category2" >
					<option value="${themaDto.thema_category2}">${themaDto.thema_category2}</option>
			</select>
			</td>		
		</tr>
		<tr>
			<td>제목 :</td>
			<td><input type="text" name="thema_subject" value="${themaDto.thema_subject}"></td>
		</tr>
		<tr>
			<td>내용 :</td>
			<td>
				<textarea  name="thema_content" rows="20" cols="30">
				${themaDto.thema_content}		
				</textarea>
			</td>
		</tr>
		<tr>
			<td>사진 :</td>
			<td><input type="file" name="file" value="C:/Spring/workspace-sts-3.2.0RELEASE/food/src/main/webapp/resources/thema/${themaDto.thema_image}">
			${themaDto.thema_image}</td>
		</tr>
		<tr>
			<td colspan="3">
				<input type="submit" value="등록하기" onclick="return themaInsert_from_submit()">
				<input type="text" name="member_num" value="1"> 
			</td>
		</tr>
		
	</table>
</form>
</c:forEach>
</body>
</html>